package com.jic.market.job.entity;

import lombok.Data;

/**
 * @author zhoufeng
 * @Description:
 * @date 2020-04-17 17:11
 */
@Data
public class JobExecutorParam {
    private String url;
    private String method;
    private String data;


    /**
     * 重写toString函数
     * 关键字冒号后有一个英文空格，
     * 除最后一个关键字数据后其他关键字数据后都有一个 \n
     * @return
     */
    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("url: ").append(getUrl()).append("\n")
                .append("method: ").append(getMethod()).append("\n")
                .append("data: ").append(getData());
        return builder.toString();
    }
}
